@extends("admin.base")
  @section("content")
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    <i class="fa fa-calendar"></i>
商品管理模块
  </h1>
  <ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">商品管理</a></li>
    <li class="active">添加商品</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
  <div class="row">
    <!-- right column -->
    <div class="col-md-12">
      <!-- Horizontal Form -->
      <div class="box box-primary">
        <div class="box-header with-border">
          <h3 class="box-title"><i class="fa fa-plus"></i> 添加商品</h3>
        </div><!-- /.box-header -->
        <!-- form start -->
        <form action="{{url('admin/details')}}" method="post" class="form-horizontal" enctype="multipart/form-data">
	        <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
	        <div class="box-body">
	        	<div class="form-group">
	              <label for="inputPassword3" class="col-sm-2 control-label">商品类型 </label><span>&nbsp;&nbsp;&nbsp;</span>
	              <div class="col-sm-4">
                	<select name="name" style="width:150px" class="form-control">
                    <option value=""></option>
                   @foreach($list as $v)
                    <option value="{{$v->name}}">{{$v->name}}</option>
                   @endforeach 
                	</select>
              	  </div>
           	 	</div>
           	 	<div class="form-group">
	            <label for="inputPassword3" class="col-sm-2 control-label">详情参数</label>
		            <div class="col-sm-10">
		              <textarea id="editor1" name="details" rows="10" cols="80" required></textarea>
		            </div>
	          	</div>
	          	<div class="box-footer">
					<div class="col-sm-offset-2 col-sm-1">
						<button type="submit" class="btn btn-primary">添加</button>
	            	</div>
				<div class="col-sm-1">
					<button type="submit" class="btn btn-primary">重置</button>
				</div>
	          </div><!-- /.box-footer -->
	        </div>
        </form>
    <div class="row"><div class="col-sm-12">&nbsp;</div></div>
     </div><!-- /.box -->

    </div><!--/.col (right) -->
  </div>   <!-- /.row -->
</section><!-- /.content -->
  @endsection

  @section("myscript")
    <script type="text/javascript">

        CKEDITOR.replace('editor1');

    </script>
  
  @endsection